#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>

int main()
{
    int i = 0;
    int t = 0;
    char str [16] = "onmlkjihgfedcba";
    for (i = 4; i >= 0; i--)
    {
        if (str[i] > str[i + 1])
        {
            t = str[i];
            str[i] = str[i + 1];
            str[i + 1] = t;
        }
    }
    printf("%s", str);
    return 0;
}